[Y,FS,WMODE,FIDX]=readwav('testaudio.wav');
[VS,ZO]=vadsohn(Y,FS,'t');
startSet = false;
counter = 1;
startTime=0;
endTime=0;
for i=1:size(VS,1)
    if(VS(i,3)==1)
        if(~startSet)
            startSet = true;
            startTime = VS(i,1);
        end
        endTime = VS(i,2);
    else
        if(startSet)
            startSet=false;
            runLength(counter,:) = [startTime endTime];
            counter = counter+1;
        end
    end
end